<?php
require_once("common.inc.php");

$blog = new BlogModel($db);

/*
$blog->title = "title";
$blog->text = "fjkdsljf";

$blog->addCondition("time", ">", "2008-07-16", "");

$blog->find();
$blog->addCondition("id", "=", "3", "AND");
$blog->addCondition("time", ">", "2008-07-16", "");
$blog->add();
$blog->addCondition("id", "=", "3", "AND");
$blog->addCondition("time", ">", "2008-07-16", "");
$blog->update();
$blog->addCondition("time", ">", "2008-07-16", "");
$blog->delete();

echo $db ."<br>";
echo $blog;
 */

//$gSmarty->assign("action", $PHP_SELF);
//$gSmarty->display("index.tpl");

/*
$sig = array(
	'name' => array( 'required' => true, 'type' => 'string') ); 
echo sanitize_vars($_GET, $sig);

echo '<br/> name = ' . $_GET['name'];
 */

/*
$sc = new SchoolModel($db);

$sc->school_name = "哈尔滨工业大学";
$sc->school_province = "黑龙江";
$sc->school_city = "哈尔滨";

$sc->add();
 */

//$s = Session::getSession();

//$s->setAttr("uid", "1");

$dp = new Dispatcher();

$dp->run();
?>
